package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.tanhua.dubbo.mappers.ConclusionMapper;
import com.tanhua.dubbo.mappers.OptionsMapper;
import com.tanhua.model.domain.Conclusion;
import com.tanhua.model.domain.Report;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService

public class ConclusionApiImpl implements ConclusionApi{
    @Autowired
    private ConclusionMapper conclusionMapper;

    @Override
    public Conclusion findByScore(int score) {
        LambdaQueryWrapper<Conclusion> lqw = new LambdaQueryWrapper<>();
        lqw.eq(Conclusion::getScore,10);
        return conclusionMapper.selectOne(lqw);
    }

    @Override
    public Conclusion getById(int id) {
        return conclusionMapper.selectById(id);
    }


}
